package com.four.seckill.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Author: hxw
 * @Date: 2022/01/06/11:31
 * @Description
 */
@Data
@TableName("ho_commodity")
public class CommodityEntity {

    private static volatile CommodityEntity commodityEntity = null;

    /**
     * 单例模式中懒汉式
     * @return
     */
    public static CommodityEntity commodityEntity() {
        if (commodityEntity==null) {
            synchronized (CategoryEntity.class) {
                if (commodityEntity==null) {
                    commodityEntity = new CommodityEntity();
                }
            }
        }
        return commodityEntity;
    }

    /**
     * 商品编号
     */
    private Integer comId;

    /**
     * 商品名称
     */
    private String comName;

    /**
     * 展示图片
     */
    private String comIcon;

    /**
     * 商品价格
     */
    private BigDecimal comPrice;

    /**
     * 是否显示
     */
    private Integer comShow;

    /**
     * 分类编号
     */
    private Integer catId;

    /**
     * 砍价金额
     */
    private BigDecimal seckPrice;

    /**
     * 开始时间
     */
    private Date seckStartTime;

    /**
     * 结束时间
     */
    private Date seckEndTime;

    /**
     * 状态
     */
    private Integer comSeckStatus;
}
